<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
    {include file="common_header"}
    <title>添加骑手</title>
    <style>
        .red{
            border: 1px solid red;
        }
    </style>
</head>
<body>
<div class="page-container">
    <form class="form form-horizontal" id="form-article-add" enctype="multipart/form-data" method="post" action="{:url('edit')}">
        <input type="hidden" name="id" value="{$data['id']}">
        <div class="row cl">
            <label class="form-label col-xs-3 col-xs-offset-1"><span class="c-red">*</span>骑手账号：</label>
            <div class="formControls col-xs-6">
                <input type="text" class="input-text" value="{$data['username']}"  placeholder="请输入骑手账号"  name="username" datatype="*" nullmsg="骑手账号不能为空" maxlength="11">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-xs-offset-1"><span class="c-red">*</span>真实姓名：</label>
            <div class="formControls col-xs-6">
                <input type="text" class="input-text"  name="realname" datatype="*"  value="{$data['realname']}" placeholder="请输入真实姓名"  nullmsg="请输入真实姓名" maxlength="11">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-xs-offset-1">骑手头像：</label>
            <div class="formControls col-xs-6">
                <input type="file" class="input-text" value="" placeholder="" id="articletitle2" name="coverFile">
            </div>
            {if condition="$data['cover']"}
            已上传，<a href="javascript:void(0);"  onclick="previewPictures('__UPLOADS__'+'{$data.cover}')" style="color: red;text-decoration: none;">预览</a>
            {/if}
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-xs-offset-1"><span class="c-red">*</span>手机号：</label>
            <div class="formControls col-xs-6">
                <input type="text" class="input-text" value="{$data['phone']}"  name="phone" placeholder="请输入11位手机号"  datatype="m" nullmsg="请输入手机号" errormsg="请输入正确的11位手机号" maxlength="11">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-xs-offset-1">配送区域：</label>
            <div class="formControls col-xs-6">
                <textarea name="deliver_region" cols="" rows="" class="textarea"  placeholder="请输入骑手的配送区域">{$data['deliver_region']}</textarea>
            </div>
        </div>
        <div class="row cl pc-20">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</div>
</div>
</body>
{include file="common_footer"}
</html>